home *** CD-ROM | disk | FTP | other *** search
/ HaCKeRz Kr0nlcKLeZ 1 / HaCKeRz Kr0nlcKLeZ.iso / chibacity / gbbdisk.arj / OS2 / BEEP.ASM next >
Encoding:
Assembly Source File  |  1995-07-20  |  1.3 KB  |  51 lines

  1. ;This is a goat for the OS2VIR. All it does is beep.
  2.  
  3. ;(C) 1995 American Eagle Publications, Inc. All rights reserved.
  4.  
  5.         .386
  6.  
  7. ;Useful constants
  8.  
  9. DGROUP  GROUP   _DATA,_STACK
  10.  
  11.         EXTRN   DosExit:FAR
  12.  
  13. CODE    SEGMENT PARA USE16 'CODE'
  14.         ASSUME  CS:CODE, DS:_DATA
  15.  
  16. ;******************************************************************************
  17. ;This is the main virus routine. It simply finds a file to infect and infects
  18. ;it, and then passes control to the host program. It resides in the first
  19. ;segment of the host program, that is, the segment where control is initially
  20. ;passed.
  21.  
  22. HOST:
  23.         mov     ax,1000
  24.         call    BEEP    ;FOR DIAGNOSTICS ONLY
  25.         push    1                               ;termiate all threads
  26.         push    0                               ;return code 0
  27.         call    DosExit                         ;terminate program
  28.  
  29.         db '(C) 1995 American Eagle Publications Inc., All rights reserved.'
  30.  
  31. ;Beeper--for diagnostics only. Frequency in ax.
  32.         EXTRN   DOSBEEP:FAR    ;FOR DIAGNOSTICS ONLY
  33. BEEP:
  34.         push    ax
  35.         push    250
  36. DBEEP:  call    DosBeep
  37.         ret
  38.  
  39. CODE    ENDS
  40.  
  41.  
  42. _DATA   SEGMENT PARA USE16 'DATA'
  43.         DB      55H,0AAH
  44. _DATA   ENDS
  45.  
  46.  
  47. _STACK  SEGMENT PARA USE16 STACK 'STACK'
  48. _STACK  ENDS
  49.  
  50.         END     HOST
  51.